<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			div{
				margin:100px auto;
				width:50px;
				height:50px;
				background: red;
				transform: rotate(0deg);
				transform-origin:200px center ;
				transition: 1s;
			}
			body{
				height:200px;
				border:1px solid red;
			}
			body:hover div{
				transform: rotate(180deg);
			}
		</style>
	</head>
	<body>
		<div>
			
		</div>
	</body>
</html>
